#ifndef _codekata_foo_h_
#define _codekata_foo_h_

#include "pub_inc/pub.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    // name
    char name[128];

    // addr
    char addr[128];

    // age
    int age;
} person;

typedef struct {
    // person attribute
    person p;

    // children
    person children;

    // children len
    int childrenLen;
} parents;

typedef struct {
    int   msgType;
    int   msgLen;
    void *msgHdr;
} RawMsg;

typedef enum {
    eHelloMsg,
    eSubscribeMsg,
    ePersonMsg,
    eParentsMsg,
} E_msgType;

#ifdef __cplusplus
}
#endif
#endif
